package com.example.ormsqlsplicingframe1.sql.impl;

import io.swagger.annotations.ApiModel;

@ApiModel("事务")
public class AffairImpl {


    //事务  默认开启
    private static boolean affair =true;



    //开启事务
    public static void open(){
        affair = true;
    }


    //关闭事务
    public static void close(){
        affair = false;
    }

    //获取当前事务是否开启
    public static boolean getAffair(){
        return affair;
    }

}
